package com.lywz.biz.common.entity.hotel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import com.lywz.core.entity.AbstractEntity;
import com.lywz.core.entity.EntityAnnotation;

/**
 * 住宿酒店实体类
 * 
 * @author Lionel pang
 * @author Sunna ming
 * @date 2010-5-7
 */
@Entity
@Table(name = "t_hotel")
@NamedQueries( {
        @NamedQuery(name = "hotel.queryHotelByHotelId", query = "from Hotel"),
        @NamedQuery(name = "hotel.queryHotelByScenicId", query = "from Hotel where scenicId=:scenicId"),
        @NamedQuery(name = "hotel.queryHotelByCityId", query = "from Hotel where cityId=:cityId") })
@EntityAnnotation
public class Hotel extends AbstractEntity {

    private static final long serialVersionUID = 2315459708574928657L;

    /** ID */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "hoteId", unique = true, nullable = false)
    private Integer hotelId;

    /** 名称 */
    private String name;

    /** 地址 */
    private String address;

    /** 所属城市Id */
    private Integer cityId;

    /** 所属城市name */
    private String cityName;

    /** 所属区县Id */
    private Integer countryId;

    /** 所属区县name */
    private String countryName;

    /** 关联景区Id */
    private Integer scenicId;

    /** 所属景区name */
    private String scenicName;

    /** 类型 */
    private Integer type;

    /** 描述 */
    private String description;

    /** 电话号码 */
    private String phoneNum;

    /** 价格区间起始价格 */
    private Integer bprize;

    /** 价格区间终止价格 */
    private Integer ePrize;

    /** 提示 */
    private String tip;

    /** 图片链接地址 */
    private String imgurl;

    public Hotel() {
        super();
    }

    public Integer getHotelId() {
        return hotelId;
    }

    public void setHotelId(Integer hotelId) {
        this.hotelId = hotelId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public Integer getBprize() {
        return bprize;
    }

    public void setBprize(Integer bprize) {
        this.bprize = bprize;
    }

    public Integer getePrize() {
        return ePrize;
    }

    public void setePrize(Integer ePrize) {
        this.ePrize = ePrize;
    }

    public String getTip() {
        return tip;
    }

    public void setTip(String tip) {
        this.tip = tip;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public Integer getCountryId() {
        return countryId;
    }

    public void setCountryId(Integer countryId) {
        this.countryId = countryId;
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    public Integer getScenicId() {
        return scenicId;
    }

    public void setScenicId(Integer scenicId) {
        this.scenicId = scenicId;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getCountryName() {
        return countryName;
    }

    public void setCountryName(String countryName) {
        this.countryName = countryName;
    }

    public String getScenicName() {
        return scenicName;
    }

    public void setScenicName(String scenicName) {
        this.scenicName = scenicName;
    }

}
